# Maintainer: Bhushan Shah <bshah@kde.org>
pkgname=telepathy-ofono
pkgver=0_git20190805
pkgrel=4
_commit="817b61d214ad2be4f74d3facb4c090ac751faf5b"
pkgdesc="Telepathy oFono connection manager"
url="https://github.com/TelepathyIM/telepathy-ofono"
arch="all"
license="LGPL-2.1-or-later"
depends="ofono"
makedepends="cmake qt5-qtbase-dev libphonenumber-dev telepathy-qt-dev sqlite-dev telepathy-mission-control-dev libofono-qt-dev"
source="https://github.com/TelepathyIM/telepathy-ofono/archive/$_commit/telepathy-ofono-$_comit.tar.gz"
options="!check" # No tests
builddir="$srcdir/$pkgname-$_commit"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DOFONO_ON_RING=ON
	make -C build
}

package() {
	DESTDIR="$pkgdir" make -C build install
}

sha512sums="946fa6f2af52f192fb4ad7bb130d28c9e4c698a10a1982a1ac4be69d4043621a5edd111a860d84bd7666778b388653167d28bae87e9e13a14c1fe5c1ff0685ad  telepathy-ofono-.tar.gz"
